<?php

class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
       // $this->view->serveur_alerte_url = Zend_Registry::get('alerte_Url');
    }

    public function indexAction()
    {
    	$this->view->title = "Accueil";
        $this->view->headTitle($this->view->title);
        $this->view->isHome = 1;
    }
    
    /**
     * Gestion du direct
     * @return unknown_type
     */
	public function testAction()
    {
      $this->_helper->viewRenderer->setNoRender();
		$this->_helper->getHelper('layout')->disableLayout();
		$rows = array (
			'Libelle' => "Ahmed",
			'deux' => "ah"
		);
		$result[]= array (
			'id' => 1,
			'cell' => $rows
		);
		$resultat = Zend_Json :: encode($result);
		$this->_response->setBody($resultat);
    }
    

    
  
    
}
    
